package cz.cvut.fit.mi.dpo.mvc.view;

import cz.cvut.fit.mi.dpo.mvc.controller.Controller;
import cz.cvut.fit.mi.dpo.mvc.model.IReadable;
import cz.cvut.fit.mi.dpo.mvc.view.graphics.GraphicsView;
import cz.cvut.fit.mi.dpo.mvc.view.tables.TableView;

import java.awt.*;

/**
 * @author David Pertl
 * @author Martin Štekl <steklmar@fit.cvut.cz>
 */
public class View extends AView {

	public View(Controller controller, IReadable model) {
		super(controller, model);
		setLayout(new BorderLayout());

		add(new GraphicsView(controller, model), BorderLayout.CENTER);
		add(new TableView(controller, model), BorderLayout.EAST);
	}

}
